<?php
if ( !defined('KAIZEKU') ) {die( 42);}
/**
 * WP-iStalker Chrome Min 
 * Template functions
 * 
 * PHP 4 & 5
 * 
 * @package	WordPress
 * @subpackage	wp-istalker-chrome-min
 * 
 * @category	Template
 * @author	Avice (ChaosKaizer) De'vereux <ck+wp-istalker-min@istalker.net>
 * @author	NH. Noah <noah+wp-istalker-min@kakkoi.net>
 * @copyright 	2007 - 2009 Avice De'vereux, NH. Noah
 * @license 	http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License v2 
 * @version 	CVS: $Id: template.php 13 2009-01-11 15:22:40Z chaoskaizer $
 * @since 	0.1
 */


/**
 * wpi_get_body_class()
 * print out semantic body class
 * file: wpiFilter::BODY_CLASS 
 *  
 * @param	string	extra classname
 * @uses sandbox_body_class() {@link http://www.plaintxt.org/themes/sandbox/ Sandbox theme semantic body class}
 * @since 0.1
 */
function wpi_get_body_class($classname = ''){

	$section = is_at();	
	
		if (! function_exists('sandbox_body_class')){ 		
			wpi_get_file('sandbox',wpiTheme::LIB_TYPE_IMPORT);
		}
			
	$output = str_array(sandbox_body_class(false),' ');
		
	// Client User agent
	$output[] = wpi_is_browser();
	
	// FOAF
	$output[] = '-foaf-Document';
		
	$output = apply_filters(wpiFilter::BODY_CLASS,$output);
	
	if (has_count($output)){
		
		$output = array_unique($output); // no duplicated
		
		return array_str($output,' ');	
	} else {
		return '';	
	}
}	
?>